package com.caishi.lkx.exam.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zzw.common.entity.impl.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

/**
 * @author by keray
 * date:2021/4/6 10:42 上午
 * 用户存在多个身份时 可以存在多个用户名登录
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_exam_calendar")
@Schema(title = "考试日历")
public class ExamCalendarModel extends BaseEntity<ExamCalendarModel> {
    @Schema(title = "考试id")
    private String examId;

    @Schema(title = "行业id")
    private String industryId;


    @Schema(title = "科目id")
    private Long categoryId;


    @Schema(title = "考试日期")
    private LocalDate examDate;


    @Schema(title = "报名时间")
    private LocalDate registrationDate;

    @Schema(title = "成绩查询时间")
    private String checkScoreDate;


    @Schema(title = "行业名")
    @TableField(exist = false)
    private String industryName;

    @Schema(title = "科目名")
    @TableField(exist = false)
    private String categoryName;

    @Schema(title = "考试名称")
    @TableField(exist = false)
    private String examName;

    @Schema(title = "修改人")
    @TableField(exist = false)
    private String modifyName;

    @Schema(title = "距今天数")
    @TableField(exist = false)
    private Long sinceDay;
    @TableField(exist = false)
    private List<Long> categoryIds;
    @Schema(title = "试题数量map，key：chapterPractice章节练习，prophesy押题密卷，mock模拟试卷，trueTopic真题试卷")
    @TableField(exist = false)
    private Map<String, Integer> qCountMap;

}
